package com.br4mmie.asciistory.ui;

/**
 * @author Rohmin
 * PlayerStatus.
 * Displays the player information such as level,HP,exp. 
 */
import com.br4mmie.asciistory.ASCIIStoryActivity;
import com.br4mmie.asciistory.CharImage;

public class PlayerStatus extends Window {

	public PlayerStatus()
	{ 
		super(2, 2, 30, 10);		
		
		image.fill(' ');		
		image.writeImage("Player Status    ", 2, 1);
		image.writeImage("HP:        "+ASCIIStoryActivity.getPlayer().currentHP+"/"+ASCIIStoryActivity.getPlayer().maxHP, 2, 2);	
		image.writeImage("Exp:       "+ASCIIStoryActivity.getPlayer().exp+"/"+ASCIIStoryActivity.getPlayer().expTNL, 2, 3);
		image.writeImage("Base Dmg:  "+ASCIIStoryActivity.getPlayer().baseDamage, 2, 4);
		image.writeImage("Base Def:  "+ASCIIStoryActivity.getPlayer().baseDefence, 2, 5);
		image.writeImage("Total Dmg: "+ASCIIStoryActivity.getPlayer().getWeaponDamage(), 2, 6);
		image.writeImage("Total def: "+ASCIIStoryActivity.getPlayer().getArmorDefence(), 2, 7);
		image.writeImage("Level:     "+ASCIIStoryActivity.getPlayer().level, 2, 8);
	}
}
